package com.tsystems.tuni.sportplanet.ws;

import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebService;

import com.tsystems.tuni.sportplanet.businesslogic.RegistrationBeanImpl;
import com.tsystems.tuni.sportplanet.businesslogic.accessinterfaces.RegistrationBeanLocal;

@WebService(endpointInterface = "com.tsystems.tuni.sportplanet.ws.RegistrationWS")
public class RegistrationWSImpl implements RegistrationWS {
	@EJB
	private RegistrationBeanLocal regBean;

	public RegistrationWSImpl() {
		regBean = new RegistrationBeanImpl();
	}

	@Override
	@WebMethod
	public boolean login(String user, String password) {
		return regBean.login(user, password);
	}
}